define(['masonry'], function(require, exports, module) {
    function doMasonry() {
        var container = $('#photo-list');
        container.imagesLoaded(function() {
            container.masonry({
                columnWidth: 2,
                itemSelector: '.thumbnail',
                animated: true
            });
            $('#photo-list .thumbnail').fadeIn();
        });
    }
    exports.init = function(c) {
        doMasonry();
        require.async('./TopInfo', function(a) {
            a.init(c);
        });
    }
});